package com.example.java13;

public class TestSwitch {


    public static void main(String[] args){
        int i = 5;
        switch (i) {
            case 0 -> {
                System.out.println("这是0");
                System.out.println("手贱!在打一行");
            }
            case 1,2,3 -> System.out.println("多个匹配");
            case 4 -> System.out.println("单个匹配");
            default -> System.out.println("default");
        }

    }

}
